package com.adxon.filter;

import com.adxon.MsgException;
import com.adxon.Uri;
import com.adxon.data.Item;
import com.adxon.servlet.ServletBase;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HtmFilter extends FilterBase{
	public void doGet(HttpServletRequest req,HttpServletResponse resp,
			FilterChain chain)throws IOException,ServletException,
			InstantiationException,IllegalAccessException,
			MsgException{
		ServletBase.setAttributes(req,null);
		((Item)new Item().update(new Uri(req).toString())).extend().
			getPage(req);
		ServletBase.forward(req,resp);
	}
}